/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.phone.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 业务员表Entity
 * @author lzw
 * @version 2019-04-03
 */
@Table(name="staff", alias="a", columns={
		@Column(name="id", attrName="id", label="员工编号", isPK=true,isInsert = false),
		@Column(name="staff_name", attrName="staffName", label="员工姓名", queryType=QueryType.LIKE),
		@Column(name="staff_mobile", attrName="staffMobile", label="员工电话"),
		@Column(name="staff_address", attrName="staffAddress", label="员工地址"),
	}, orderBy="a.id DESC"
)
public class Staff extends DataEntity<Staff> {
	
	private static final long serialVersionUID = 1L;
	private String staffName;		// 员工姓名
	private String staffMobile;		// 员工电话
	private String staffAddress;		// 员工地址
	private Integer number;
	public Staff() {
		this(null);
	}

	public Staff(String id){
		super(id);
	}
	
	@Length(min=0, max=10, message="员工姓名长度不能超过 10 个字符")
	public String getStaffName() {
		return staffName;
	}

	public void setStaffName(String staffName) {
		this.staffName = staffName;
	}
	
	@Length(min=0, max=20, message="员工电话长度不能超过 20 个字符")
	public String getStaffMobile() {
		return staffMobile;
	}

	public void setStaffMobile(String staffMobile) {
		this.staffMobile = staffMobile;
	}
	
	@Length(min=0, max=50, message="员工地址长度不能超过 50 个字符")
	public String getStaffAddress() {
		return staffAddress;
	}

	public void setStaffAddress(String staffAddress) {
		this.staffAddress = staffAddress;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}
}